<template>
  <div id="app" v-loading.fullscreen.lock="fullscreenLoading">
    <router-view></router-view>
  </div>
</template>

<script>
export default{
    computed: {
        fullscreenLoading() {
            return this.$store.state.app.fullscreenLoading;
        }
    },
    created() {
        // 缓存必要信息
        this.$store.dispatch('updateArea').then().catch();
        this.$store.dispatch('updateCategory').then().catch();
    }
};
</script>
